<?
$jsFile = 'admin/js/jsLogin.js';
include('../includes/appInit.php');
include('../admin/includes/ajax/ajaxLogin.php');
$onLoadStuff = 'onLoad="focusLogin();"';

include('../includes/headerLowFat.php');
$appData = new getData();
?>

<div id="subPage">
	<div id="subPageContent" class="flex">
		<h2>Please Login</h2>
		<div id="errorMessage"></div>
		<div class="emphBox" style="width: 550px;">
			<div class="emphBoxInner" id="formLogin" style="font-size: 1.2em;">
				<form action="<?=$_SERVER['PHP_SELF']; ?>" method="POST" id="formLogin">
					<input type="hidden" id="ptiResourceShare" value="1" />
					
					<p><label>Email Address</label>
					<input type="text" id="userid" name="userid" style="width: 200px;" />
					</p>
					<p><label>Password</label>
					<input type="password" id="password" name="password" style="width: 200px;" />
					</p>		
					
					<div style="margin-left: 230px;">
					<input type="submit" value="Login" class="buttonBlue" title="Login" onClick="loginObj.tryLogin('resource'); return false;" />
					</div>	
				</form>
				<div style="margin: 10px 0 0 230px;">
					<a href="#" onClick="findPasswordObj.openFindPasswordForm(); return false;">I forgot my password.</a><br />
					<!-- <a href="">Request an account.</a> -->
				</div>				
			</div>
			
			<div class="emphBoxInner" id="formFindPassword" style="font-size: 1.2em; display: none;">
				<p style="height: 30px;">Enter your email address below and your login information will be sent to you shortly.</p>
				<p><label>Email Address</label>
					<input type="text" id="email" name="email" style="width: 260px;" />
				</p>
				
				<div style="margin: 10px 0 0 230px;">
					<div style="float: left; margin-right: 20px;"><input type="button" onClick="findPasswordObj.findPassword(); return false;" value="Send" class="buttonBlue" title="Send my login information" /></div>
					<div style="float: left;"><a href="#" onClick="findPasswordObj.cancel(); return false;">Cancel</a></div>
					<div style="clear: left;"></div>
				</div>	
			</div>	
					
			<div class="emphBoxInner" id="formRequestAccount" style="display: none; font-size: 1.2em;">
				<form action="<?=$_SERVER['PHP_SELF']; ?>" method="POST">
					<p><label>Email Address</label>
					<input type="text" id="userid" name="userid" style="width: 200px;" />
					</p>
					<p><label>Password</label>
					<input type="password" id="password" name="password" style="width: 200px;" />
					</p>		
					
					<div style="margin-left: 230px;">
					<input type="button" value="Login" class="buttonBlue" title="Login" onClick="loginObj.tryLogin(); return false;" />
					</div>	
				</form>
				<div style="margin: 10px 0 0 230px;">
					<a href="#" onClick="findPasswordObj.openFindPasswordForm(); return false;">I forgot my password.</a><br />
					<a href="">Request an account.</a>
				</div>				
			</div>		
		</div>	
		</div>	
	</div>	
</div>
<?
include('../includes/footerLowFat.php');
?>